package com.stylefeng.guns.modular.coolingvest.warpper;

import com.stylefeng.guns.core.base.warpper.BaseControllerWarpper;
import com.stylefeng.guns.core.common.constant.factory.ConstantFactory;

import java.util.List;
import java.util.Map;

/**
 * 菜单列表的包装类
 *
 * @author fengshuonan
 * @date 2017年2月19日15:07:29
 */
public class VestWarpper extends BaseControllerWarpper {

    public VestWarpper(List<Map<String, Object>> list) {
        super(list);
    }

    @Override
    public void warpTheMap(Map<String, Object> map) {
        map.put("devicetype", ConstantFactory.me().getdeviceTypeName((String) map.get("devicetype")));
        map.put("manufacturer", ConstantFactory.me().getmanufacturerName((String) map.get("manufacturer")));
        map.put("supplier", ConstantFactory.me().getsupplierName((String) map.get("supplier")));
        map.put("origin", ConstantFactory.me().getoriginName((String) map.get("origin")));
        map.put("lifecycle", ConstantFactory.me().getlifecycleName((String) map.get("lifecycle")));
        map.put("equstate", ConstantFactory.me().getequStatName((String) map.get("equstate")));
        map.put("deptid", ConstantFactory.me().getDeptName((Integer) map.get("deptid")));
    }

}
